<UserControl x:Class="Kaxaml.Plugins.Default.Find"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
      <StackPanel Margin="7">

        <TextBlock Margin="0,0,0,0" x:Name="FindTextBox">Find:</TextBlock>
        <TextBox Name="FindText" GotFocus="TextBox_GotFocus" Margin="0,3,0,0" />

        <TextBlock Margin="0,10,0,0">Replace with:</TextBlock>
        <TextBox Name="ReplaceText" GotFocus="TextBox_GotFocus" Margin="0,3,0,0" />

        <CheckBox Name="Selection" Margin="1,5,0,0">Replace in selected text only</CheckBox>

        <StackPanel Margin="0,15,0,0" HorizontalAlignment="Right" Orientation="Horizontal">
          <Button Name="ReplaceButton" IsEnabled="True" Margin="0,0,5,0" Click="DoReplace">Replace All</Button>
          <Button IsDefault="True" Click="DoFind">Find</Button>
        </StackPanel>

      </StackPanel>
    </Grid>
</UserControl>
